package org.zjx.dao.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2025-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("account_server_role")
public class AccountServerRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 帐号-角色 对应表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *  帐号 id
     */
    private Long accountId;

    /**
     *  服务器id
     */
    private Long serverId;

    /**
     *  角色id
     */
    private Long roleId1;

    private Long roleId2;

    private Long roleId3;

    private Long roleId4;

    private Long roleId5;

    private Long roleId6;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Boolean deleted;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
